package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.WisdomElectricityAlarmsDao;
import com.site.wisdom_construction.entity.iotModule.WisdomElectricityAlarms;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/17
 * @Description
 */
@Service
public class WisdomElectricityAlarmsService implements WisdomElectricityAlarmsDao {
    @Autowired
    private WisdomElectricityAlarmsDao wisdomElectricityAlarmsDao;

    @Override
    public int insertWisdomElectricityAlarms(Map map) {
        return wisdomElectricityAlarmsDao.insertWisdomElectricityAlarms(map);
    }

    @Override
    public List<WisdomElectricityAlarms> findWisdomElectricityAlarmsByAll(Map map) {
        return wisdomElectricityAlarmsDao.findWisdomElectricityAlarmsByAll(map);
    }

    @Override
    public List<WisdomElectricityAlarms> countWisdomElectricityAlarmsByAlarmStatus(Map map) {
        return wisdomElectricityAlarmsDao.countWisdomElectricityAlarmsByAlarmStatus(map);
    }

    @Override
    public List<WisdomElectricityAlarms> findWisdomElectricityAlarmsByPage(Map map) {
        return wisdomElectricityAlarmsDao.findWisdomElectricityAlarmsByPage(map);
    }

    @Override
    public long Total(Map map) {
        return wisdomElectricityAlarmsDao.Total(map);
    }

    @Override
    public int deleteWisdomElectricityAlarms(Map map) {
        return wisdomElectricityAlarmsDao.deleteWisdomElectricityAlarms(map);
    }
}
